package com.xn.app.muying.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.xn.app.muying.R;
import com.xn.app.muying.util.BaseActivity;

/**
 * 查看历史列表
 * Created by Administrator on 2016/11/21.
 */
public class HistoryRecordActivity extends BaseActivity implements View.OnClickListener {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_history_record);
        TextView long_check = (TextView) findViewById(R.id.long_check);
        TextView autonomy_check = (TextView) findViewById(R.id.autonomy_check);
        ImageView back = (ImageView) findViewById(R.id.back);
        long_check.setOnClickListener(this);
        autonomy_check.setOnClickListener(this);
        back.setOnClickListener(this);
    }

    @Override
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.back:
                finish();
                break;
            //远程胎心历史
            case R.id.long_check:
                this.startActivity(new Intent(MainActivity.mActivity,FarMonitorListActivity.class));
                break;
            //自主胎心历史
            case R.id.autonomy_check:
                this.startActivity(new Intent(MainActivity.mActivity, TaiXinLieBiaoActivity.class));
                break;
        }
    }

    @Override
    protected void onResume() {
        super.onResume();
    }
}
